package com.example.openim.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * @description: 人员信息
 * @author: xhq
 * @create: 2025-11-03 15:38
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "person_data")
public class PersonData {
    @Id
    private String id;
    //姓名
    @Field("ZRYXM")
    private String zryxm;
    //登录名
    @Field("ZDNAME")
    private String zdname;
    //所属部门
    @Field("ZBMID")
    private String zbmId;
    //人员编码（唯一）
    @Field("ZXZPER")
    @Indexed(unique = true)
    private String zxzper;
    //人员排序号
    @Field("ZRYPX")
    private String zrypx;
    //主岗
    @Field("ZZGANG")
    private String zzgang;
    //性别
    @Field("ZXB")
    private String zxb;
    //手机号码
    @Field("ZSJHM")
    @Indexed(sparse = true)
    private String zsjhm;
    //电子邮件
    @Field("ZDZYJ")
    private String zdzyj;
    //是否启用 空为正常；X为删除
    @Field("ZRYDE")
    private String zryde;
    //职务级别
    @Field("ZZWJB")
    private String zzwjb;
    //屏蔽表识
    @Field("BLOCK")
    private String block;
    //用户ID
    @Field("USERID")
    private String userid;
}
